<?php
/**
 * Created by PhpStorm.
 * User: Dream
 * Date: 2017/12/2
 * Time: 16:07
 */

namespace App\Base;


use Illuminate\Support\Facades\DB;

class OrderStatus
{
    public function unOrder()
    {
        $unOrder = DB::table('status')
            ->where('status_name','=','预定成功，正在配货')
            ->first();
        return $unOrder;
    }

    public function Ordering()
    {
        $Ordering = DB::table('status')
            ->where('status_name','=','配货完成，可前往领取')
            ->first();
        return $Ordering;
    }

    public function end()
    {
        $end = DB::table('status')
            ->where('status_name','=','订单完成')
            ->first();
        return $end;
    }
}